const http = uni.$u.http
const apis="prod-api"
export const getpettype = (params)=>http.get(`/${apis}/system/dict/data/type/bus_pet_type`,{params})
export const getlogin=(params)=>http.get(`/${apis}/wechat/getWechatCode2Session`,{params})
export const poslogin=(params)=>http.post(`/${apis}/wechat/registerUser`,params)
export const posrguser=(params)=>http.get(`/${apis}/wechat/registerUser`,params)
export const possetpet=(params)=>http.post(`/${apis}/business/pet`,params)
export const getcurrentpetnnfo = (params)=>http.get(`/${apis}/business/pet/getCurrentUserPetInfo`)
export const posschedule=(params)=>http.post(`/${apis}/business/schedule`,params)
export const posscheduleput=(params)=>http.put(`/${apis}/business/schedule`,params)
export const getrepos=(params)=>http.get(`/${apis}/business/repository/list`,{params})
export const getinfoprams=(params)=>http.get(`${apis}/business/classification/${params.id}`)



//字典
export const getbeed=(params)=>http.get(`/${apis}/system/dict/data/type/bus_pet_breed`,{params})
export const getsex=(params)=>http.get(`/${apis}/system/dict/data/type/sys_user_sex`,{params})
export const getyn=(params)=>http.get(`/${apis}/system/dict/data/type/bus_yes_no`,{params})
